<?php

jimport( 'joomla.application.component.controller' );

/**
 * Note: this view is intended only to be opened in a popup
 * @package Joomla
 * @subpackage Config
 */
class Controller_test extends JController {

/**
 * Custom Constructor
 */
    function __constuct( $default = array()) {
        parent::__construct( $default );
    }


    /**
     * Cancel operation
     */
    function cancel() {
        $this->setRedirect( 'www.google.it' );
    }

    function display() {
        echo 'ok';

        $view = new Testview( );
        $view->display();
    }
}
?>